package com.joven.product.api.business.client.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品分页查询参数
 * </p>
 *
 * @author Joven
 * @date 2022-01-06 18:21:27
 */
@Data
@ApiModel("商品分页查询参数")
public class ProductPageQuery {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("商品编码")
    private String code;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品价格最小值")
    private BigDecimal fromPrice;

    @ApiModelProperty("商品价格最大值")
    private BigDecimal toPrice;

    @ApiModelProperty("0：待售，1：在售，2：下架")
    private Integer status;

    @ApiModelProperty("商品分类id")
    private Long categoryId;

    @ApiModelProperty("供应商id")
    private Long supplierId;

    @ApiModelProperty("创建人id")
    private Long createUser;

    @ApiModelProperty("更新人id")
    private Long updateUser;

    @ApiModelProperty("创建时间最小值")
    private LocalDateTime fromCreateTime;

    @ApiModelProperty("创建时间最大值")
    private LocalDateTime toCreateTime;

    @ApiModelProperty("更新时间最小值")
    private LocalDateTime fromUpdateTime;

    @ApiModelProperty("更新时间最大值")
    private LocalDateTime toUpdateTime;

    @ApiModelProperty("当前页")
    private Long current = 1L;

    @ApiModelProperty("每页条数")
    private Long size = 10L;
}